package day0910.demo2;

/**
 * @Author:galaxy_yan
 * @Date: 2022/9/10
 * @Time: 20:37
 * @Description
 */
public class Circle extends Shape{
    private double r;
    private final static double PI=3.14;

    public Circle(double r) {
        this.r = r;
    }

    @Override
    void draw() {
        System.out.println("⚪");
    }

    @Override
    public void calcArea() {
        System.out.println(PI*r*r);
    }
}
